package com.yh.action;


import com.yh.entity.User;
import com.yh.services.IUserService;
import com.yh.services.impl.UserServiceImpl;
import lombok.Data;

import static com.opensymphony.xwork2.Action.SUCCESS;

@Data
public class DelUserAction {
  private int id;
  public String execute(){
      IUserService userService= new UserServiceImpl();
      User user=new User();
      user.setCol_Id(id);
     int b=userService.delUser(user);
     if (b>0){
         return SUCCESS;
     }else {
         return "out";
     }
  }
}
